package cn.wgx.modules.sys.entity.mapper;

import cn.wgx.modules.sys.entity.SysLog;
import cn.wgx.modules.sys.entity.SysLogExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

@Mapper
public interface SysLogMapper {

    int countTodayUser(Date createDate);

    List<Map> countActive(@Param("startDate") Date startDate, @Param("endDate") Date endDate);

    /**
     * @mbg.generated Wed Jun 06 10:22:17 CST 2018
     */
    int updateByExampleWithBLOBs(@Param("record") SysLog record, @Param("example") SysLogExample example);

    /**
     * @mbg.generated Wed Jun 06 10:22:17 CST 2018
     */
    List<SysLog> selectByExampleWithBLOBs(SysLogExample example);

    /**
     * @mbg.generated Wed Jun 06 10:22:17 CST 2018
     */
    int insertSelective(SysLog record);

    /**
     * @mbg.generated Wed Jun 06 10:22:17 CST 2018
     */
    int deleteByPrimaryKey(Integer id);

    /**
     * @mbg.generated Wed Jun 06 10:22:17 CST 2018
     */
    SysLog selectByPrimaryKey(Integer id);

    /**
     * @mbg.generated Wed Jun 06 10:22:17 CST 2018
     */
    List<SysLog> selectByExample(SysLogExample example);

    /**
     * @mbg.generated Wed Jun 06 10:22:17 CST 2018
     */
    int updateByPrimaryKeySelective(SysLog record);

    /**
     * @mbg.generated Wed Jun 06 10:22:17 CST 2018
     */
    long countByExample(SysLogExample example);

    /**
     * @mbg.generated Wed Jun 06 10:22:17 CST 2018
     */
    int insert(SysLog record);

    /**
     * @mbg.generated Wed Jun 06 10:22:17 CST 2018
     */
    int updateByExampleSelective(@Param("record") SysLog record, @Param("example") SysLogExample example);

    /**
     * @mbg.generated Wed Jun 06 10:22:17 CST 2018
     */
    int updateByPrimaryKeyWithBLOBs(SysLog record);

    /**
     * @mbg.generated Wed Jun 06 10:22:17 CST 2018
     */
    int deleteByExample(SysLogExample example);

    /**
     * @mbg.generated Wed Jun 06 10:22:17 CST 2018
     */
    int updateByExample(@Param("record") SysLog record, @Param("example") SysLogExample example);

    /**
     * @mbg.generated Wed Jun 06 10:22:17 CST 2018
     */
    int updateByPrimaryKey(SysLog record);
}
